<?php
if($_POST["nome"]){

                   echo "<h1>{$_POST["nome"]}</h1>";

}

?>
<form method="POST">
Nome: <input type="text" size="20" name="nome" value=""><BR><BR>
<input type="submit" value="enviar">
</form>
